﻿using Practice.Common.Infrastructure.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;


namespace Practice.Common.Infrastructure.Repositories
{
    public class IdentityService:IIdentityService
    {
        private readonly IHttpContextAccessor _httpContextAccessor;

        public IdentityService(IHttpContextAccessor httpContextAccessor)
        {
            _httpContextAccessor = httpContextAccessor;
        }

        public string userid
        {
            get => _httpContextAccessor.HttpContext.User.FindFirst("userId").Value;
            set => throw new NotImplementedException();
        }
        public string password
        {
            get => _httpContextAccessor.HttpContext.User.FindFirst("password").Value;
            set => throw new NotImplementedException();
        }


    }
}
